font chooser: Stop listening to style-updated
authorMatthias Clasen <mclasen@redhat.com>
Tue, 19 Dec 2017 16:34:43 +0000 (11:34 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Dec 2017 16:45:56 +0000 (11:45 -0500)
The only time a style-updated indicates we need
to reload fonts is when it is synthesized by GtkSettings
in response to a fontconfig timestamp change, but
we are listening to those already, anyway.

gtk/gtkfontchooserwidget.c

index 824e8ad6f3cb385e0df120bcdb82886e7768effb..0803b43b04d2a34f9d170df45d260f70d2ef8425 100644 (file)
@@ -131,8 +131,6 @@ static void gtk_font_chooser_widget_finalize             (GObject         *objec
 static void gtk_font_chooser_widget_display_changed      (GtkWidget       *widget,
                                                           GdkDisplay      *previous_display);
 
-static void gtk_font_chooser_widget_style_updated        (GtkWidget       *widget);
-
 static gboolean gtk_font_chooser_widget_find_font        (GtkFontChooserWidget *fontchooser,
                                                           const PangoFontDescription *font_desc,
                                                           GtkTreeIter          *iter);
@@ -638,7 +636,6 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
   g_type_ensure (G_TYPE_THEMED_ICON);
 
   widget_class->display_changed = gtk_font_chooser_widget_display_changed;
-  widget_class->style_updated = gtk_font_chooser_widget_style_updated;
   widget_class->measure = gtk_font_chooser_widget_measure;
   widget_class->size_allocate = gtk_font_chooser_widget_size_allocate;
   widget_class->snapshot = gtk_font_chooser_widget_snapshot;
@@ -1138,16 +1135,6 @@ gtk_font_chooser_widget_display_changed (GtkWidget  *widget,
   gtk_font_chooser_widget_load_fonts (fontchooser, FALSE);
 }
 
-static void
-gtk_font_chooser_widget_style_updated (GtkWidget *widget)
-{
-  GtkFontChooserWidget *fontchooser = GTK_FONT_CHOOSER_WIDGET (widget);
-
-  GTK_WIDGET_CLASS (gtk_font_chooser_widget_parent_class)->style_updated (widget);
-  gtk_font_chooser_widget_load_fonts (fontchooser, FALSE);
-}
-
 static PangoFontFamily *
 gtk_font_chooser_widget_get_family (GtkFontChooser *chooser)
 {